<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>

        .box{
            text-align: center;
            width: 300px;
            height: 500px;
            background-color: pink;
            margin: auto;
        }
        .sub .box{
            text-align: center;
            left: 50px;
            margin: auto;
        }
    </style>
</head>
<body>
<form th:action="@{/insert}" method="post" class="box">
    <table>
        <caption>增加学生</caption>
        <tr class="input-box">
            <td>学号</td>
            <td><input type="text" name="studentid"></td>
        </tr>
        <tr class="input-box">
            <td>姓名</td>
            <td><input type="text"  name="studentname"></td>
        </tr>
        <tr>
            <td>年龄</td>
            <td><input type="number" name="age"></td>
        </tr>
        <tr>
            <td>班级</td>
            <td><input type="text" name="classes"></td>
        </tr>
        <tr>
            <td>电话</td>
            <td><input type="text" name="num"></td>
        </tr>

        <tr>
            <td><input class="sub" type="submit" value="insert"></td>
        </tr>
        <tr>
            <td><span th:text="${msg}"></span></td>
        </tr>
    </table>
</form>

</body>
</html>